package com.dk.service.impl;
import com.dk.pojo.TOrder;
import com.dk.mapper.TOrderMapper;
import com.dk.service.ITOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2021-11-01
 */
@Service
public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> implements ITOrderService {

    @Autowired
    private TOrderMapper tOrderMapper;

    @Override
    public boolean insertOrder(TOrder tOrder) {
        int insert = tOrderMapper.insert(tOrder);
        return insert > 0;
    }
}
